<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
	<div class="taglist">
		<span>标签:</span>
		<ul>
			<c:forEach items="${lableList}" varStatus="item">
				<li>
					<a href="tag_tag_tagInfo.htm?lableName=${lableList[item.index]}">${lableList[item.index]}</a>
				</li>
			</c:forEach>
		</ul>
	</div>
	<div class="social-lnk">
		<span>分享给好友:</span> 
		<a href="#"><img src="./images/feground/32-renren.png" onclick="share_to('renren','分享图片【${param.commodityTitle}】','${param.imgsrc}');"/></a> 
		<a href="#"><img src="./images/feground/32-kaixin001.png" onclick="share_to('kaixin001','分享图片【${param.commodityTitle}】','${param.imgsrc}');return false;"/></a> 
		<a href="#"><img src="./images/feground/32-weibo.png" onclick="share_to('tsina','分享图片【${param.commodityTitle}】','${param.imgsrc}')"/></a> 
		<a href="#"><img src="./images/feground/32-qqweibo.png" onclick="share_to('tqq','分享图片【${param.commodityTitle}】','${param.imgsrc}');return false;"/></a>
	</div>
	<div class="clear">
	</div>
	<div class="reply-area">
		<div class="cmt-area">
			<div class="cmt-dd">
				<div class="pimg">
					<a href="./friend_friends_home.htm?userId=${userInfo.userId}"><img width="47" height="48" src="${rootPicPath }${userInfo.userPhoto}"></a>
				</div>
				<div class="cmt-ctnt pr">
					<label id="comment_id" class="ipt-f" for="txa-cmt-reply" id="txa-cmt-label" style="display: block;">
						添加你的评论...
					</label>
					<textarea id="commentInfo" name="content" class="txa" style="overflow:hidden; height: 44px;" onfocus="javascript:commodity.contentOnfocus()" onblur="javascript:commodity.contentOnBlur(this.value)"></textarea>
				</div>
				<div class="reply-sub clr">
					<button type="submit" class="button sign" onclick="javascript:commodity.commentOnclick();return false;">评论</button>
				</div>
			</div>
		</div>
		<c:forEach items="${userCommentList}" varStatus="item">
			<div class="cmt-area">
				<div class="cmt-dd">
					<div class="pimg">
						<a href="./friend_friends_home.htm?userId=${userCommentList[item.index].userId}"><img width="47" height="48" src="${rootPicPath }${userCommentList[item.index].userPhoto}"></a>
					</div>
					<h3>
						<a href="#" class="ppname">${userCommentList[item.index].petName}</a><i> <fmt:formatDate value="${userCommentList[item.index].commentTime}" type="both"/></i>
					</h3>
					<div id="reply_${userCommentList[item.index].commentId}" class="cmt-ctnt">
						${userCommentList[item.index].commentContent}<a href="#" class="rreply lkl ml8" onclick="javascript:commodity.replyOnclick('${userCommentList[item.index].commentId}');return false;">回复</a>
						<div class="cmt-related">
							<form action="" method="post" id="rrp-form">
								<div class="rrp-cont smltxa">
									<textarea id="content_${userCommentList[item.index].commentId}" name="content" class="txa" id="rrp-txa" style="overflow: hidden; height: 44px;"></textarea>
								</div>
								<div class="rrp-tail">
									<button class="button sign" type="button" onclick="javascript:commodity.submitReplyInfo('${userCommentList[item.index].commentId}','${userCommentList[item.index].commentId}');return false;"><u>回复</u></button>
								</div>
							</form>
						</div>
					</div>
					<c:forEach items="${userCommentList[item.index].commentList}" var="userComment">
						<div class="feeds_comment_v2">
							<div class="mod_comments">
								<div class="comments_list">
									<ul>
										<li class="comments_item bor3">
											<div class="comments_item_bd">
												<div class="ui_avatar">
													<a target="_blank" href="./friend_friends_home.htm?userId=${userComment.userId}"><img src="${rootPicPath }${userComment.userPhoto}" class="q_namecard q_des"></a>
												</div>
												<div class="comments_content">
													<h3>
														<a target="_blank"  class="q_namecard q_des nickname c_tx" href="./friend_friends_home.htm?userId=${userComment.userId}">${userComment.petName}</a><i><fmt:formatDate value="${userComment.commentTime}" type="both"/></i>
													</h3>
													<div class="comments_op">
														<span class="c_tx3 ui_mr10">${userComment.commentContent}</span>
														<div id="reply_${userComment.commentId}" class="cmt-ctnt">
															<a href="#" class="rreply lkl ml8" onclick="javascript:commodity.replyOnclick('${userComment.commentId}');return false;">回复</a>
															<div class="cmt-related">
																<form action="" method="post" id="rrp-form">
																	<div class="rrp-cont smltxa">
																		<textarea id="content_${userComment.commentId}" name="content" class="txa" id="rrp-txa" style="overflow: hidden; height: 44px;"></textarea>
																	</div>
																	<div class="rrp-tail">
																		<button class="button sign" type="button" onclick="javascript:commodity.submitReplyInfo('${userComment.commentId}','${userCommentList[item.index].commentId}');return false;"><u>回复</u></button>
																	</div>
																</form>
															</div>
														</div>
													</div>
												</div>
											</div>
										</li>
									</ul>
								</div>
							</div>
						</div>
					</c:forEach>
				</div>
			</div>
		</c:forEach>
	</div>
